home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / c / gcc261ud-c.lha / gnu / NEWS-2.6.1 < prev    next >
Encoding:
Text File  |  1994-10-31  |  16.2 KB  |  439 lines

  1. Noteworthy changes in GCC version 2.6.1:
  2.  
  3. Numerous bugs have been fixed.
  4.  
  5. The 386 now supports two new switches: -mreg-alloc=<string> changes the default
  6. register allocation order used by the compiler, and -mno-wide-multiply disables
  7. the use of the mul/imul instructions that produce 64 bit results in EAX:EDX
  8. from 32 bit operands to do long long multiplies and 32-bit division by
  9. constants.
  10.  
  11. Noteworthy changes in GCC version 2.6.0:
  12.  
  13. Numerous bugs have been fixed, in the C and C++ front-ends, as
  14. well as in the common compiler code.
  15.  
  16. This release includes the C, Objective-C, and C++ compilers.  However,
  17. we have moved the files for the C++ compiler (G++) files to a
  18. subdirectory, cp.  Subsequent releases of GCC will split these files
  19. to a separate TAR file.
  20.  
  21. The G++ team has been tracking the development of the ANSI standard for C++.
  22. Here are some new features added from the latest working paper:
  23.  
  24.     * built-in boolean type 'bool', with constants 'true' and 'false'.
  25.     * array new and delete (operator new [] and delete []).
  26.     * WP-conforming lifetime of temporaries.
  27.     * explicit instantiation of templates (template class A<int>;),
  28.           along with an option (-fno-implicit-templates) to disable emission
  29.           of implicitly instantiated templates, obsoletes -fexternal-templates.
  30.     * static member constants (static const int foo = 4; within the
  31.           class declaration).
  32.  
  33. Many error messages have been improved to tell the user more about the
  34. problem.  Conformance checking with -pedantic-errors has been
  35. improved.  G++ now compiles Fresco.
  36.  
  37. There is now an experimental implementation of virtual functions using
  38. thunks instead of Cfront-style vtables, enabled with -fvtable-thunks.
  39. This option also enables a heuristic which causes the compiler to only
  40. emit the vtable in the translation unit where its first non-inline
  41. virtual function is defined; using this option and
  42. -fno-implicit-templates, users should be able to avoid #pragma
  43. interface/implementation altogether.
  44.  
  45. Signatures have been added as a GNU C++ extension.  Using the option
  46. -fhandle-signatures, users are able to turn on recognition of
  47. signatures.  A short introduction on signatures is in the section
  48. `Extension to the C++ Language' in the manual.
  49.  
  50. The `g++' program is now a C program, rather than a shell script.
  51.  
  52. Lots and lots and lots of bugs fixes, in nested types, access control,
  53. pointers to member functions, the parser, templates, overload
  54. resolution, etc, etc.
  55.  
  56. There have been two major enhancements to the Objective-C compiler:
  57.  
  58. 1) Added portability.  It now runs on Alpha, and some problems with
  59.    message forwarding have been addressed on other platforms.
  60.  
  61. 2) Selectors have been redefined to be pointers to structs like:
  62.    { void *sel_id, char *sel_types }, where the sel_id is the unique
  63.    identifier, the selector itself is no longer unique.  
  64.  
  65.    Programmers should use the new function sel_eq to test selector
  66.    equivalence.
  67.  
  68. The following major changes have been made to the base compiler and
  69. machine-specific files.
  70.  
  71. - The MIL-STD-1750A is a new port, but still preliminary.
  72.  
  73. - The h8/300h is now supported; both the h8/300 and h8/300h ports come
  74.   with 32 bit IEEE 754 software floating point support.
  75.  
  76. - The 64-bit Sparc (v9) and 64-bit MIPS chips are supported.
  77.  
  78. - NetBSD is supported on m68k, Intel x86, and pc523 systems and FreeBSD
  79.   on x86.
  80.  
  81. - COFF is supported on x86, m68k, and Sparc systems running LynxOS.
  82.  
  83. - 68K systems from Bull and Concurrent are supported and System V
  84.   Release 4 is supported on the Atari.
  85.  
  86. - GCC supports GAS on the Motorola 3300 (sysV68) and debugging
  87.   (assuming GAS) on the Plexus 68K system.  (However, GAS does not yet
  88.   work on those systems).
  89.  
  90. - System V Release 4 is supported on MIPS (Tandem).
  91.  
  92. - For DG/UX, an ELF configuration is now supported, and both the ELF
  93.   and BCS configurations support ELF and COFF object file formats.
  94.  
  95. - OSF/1 V2.0 is supported on Alpha.
  96.  
  97. - Function profiling is also supported on Alpha.
  98.  
  99. - GAS and GDB is supported for Irix 5 (MIPS).
  100.  
  101. - "common mode" (code that will run on both POWER and PowerPC
  102.   architectures) is now supported for the RS/6000 family; the
  103.   compiler knows about more PPC chips.
  104.  
  105. - Both NeXTStep 2.1 and 3 are supported on 68k-based architectures.
  106.  
  107. - On the AMD 29k, the -msoft-float is now supported, as well as
  108.   -mno-sum-in-toc for RS/6000, -mapp-regs and -mflat for Sparc, and
  109.   -membedded-pic for MIPS.
  110.  
  111. - GCC can now convert division by integer constants into the equivalent
  112.   multiplication and shift operations when that is faster than the
  113.   division.
  114.     
  115. - Two new warning options, -Wbad-function-cast and
  116.   -Wmissing-declarations have been added.
  117.  
  118. - Configurations may now add machine-specific __attribute__ options on
  119.   type; many machines support the `section' attribute.
  120.  
  121. - The -ffast-math flag permits some optimization that violate strict
  122.   IEEE rules, such as converting X * 0.0 to 0.0.
  123.  
  124. Noteworthy changes in GCC version 2.5.8:
  125.  
  126. This release only fixes a few serious bugs.  These include fixes for a
  127. bug that prevented most programs from working on the RS/6000, a bug
  128. that caused invalid assembler code for prgrams with a `switch'
  129. statement on the NS32K, a G++ problem that caused undefined names in
  130. some configurations, and several less erious problems, some of which
  131. can affect most configuration.
  132.  
  133. Noteworthy change in GCC version 2.5.7:
  134.  
  135. This release only fixes a few bugs, one of which was causing bootstrap
  136. compare errors on some systems.
  137.  
  138. Noteworthy change in GCC version 2.5.6:
  139.  
  140. A few backend bugs have been fixed, some of which only occur on one
  141. machine.
  142.  
  143. The C++ compiler in 2.5.6 includes:
  144.  
  145.  * fixes for some common crashes
  146.  * correct handling of nested types that are referenced as `foo::bar'
  147.  * spurious warnings about friends being declared static and never
  148.    defined should no longer appear
  149.  * enums that are local to a method in a class, or a class that's
  150.    local to a function, are now handled correctly.  For example:
  151.        class foo { void bar () { enum { x, y } E; x; } };
  152.        void bar () { class foo { enum { x, y } E; E baz; }; }
  153.  
  154. Noteworthy change in GCC version 2.5.5:
  155.  
  156. A large number of C++ bugs have been fixed.
  157.  
  158. The fixproto script adds prototypes conditionally on __cplusplus.
  159.  
  160. Noteworthy change in GCC version 2.5.4:
  161.  
  162. A bug fix in passing of structure arguments for the HP-PA architecture
  163. makes code compiled with GCC 2.5.4 incompatible with code compiled
  164. with earlier versions (if it passes struct arguments of 33 to 64 bits,
  165. interspersed with other types of arguments).
  166.  
  167. Noteworthy change in gcc version 2.5.3:
  168.  
  169. The method of "mangling" C++ function names has been changed.  So you
  170. must recompile all C++ programs completely when you start using GCC
  171. 2.5.  Also, GCC 2.5 requires libg++ version 2.5.  Earlier libg++
  172. versions won't work with GCC 2.5.  (This is generally true--GCC
  173. version M.N requires libg++ version M.N.)
  174.  
  175. Noteworthy GCC changes in version 2.5:
  176.  
  177. * There is now support for the IBM 370 architecture as a target.
  178. Currently the only operating system supported is MVS; GCC does not run
  179. on MVS, so you must produce .s files using GCC as a cross compiler,
  180. then transfer them to MVS to assemble them.  This port is not reliable
  181. yet.
  182.  
  183. * The Power PC is now supported.
  184.  
  185. * The i860-based Paragon machine is now supported.
  186.  
  187. * The Hitachi 3050 (an HP-PA machine) is now supported.
  188.  
  189. * The variable __GNUC_MINOR__ holds the minor version number of GCC, as
  190. an integer.  For version 2.5.X, the value is 5.
  191.  
  192. * In C, initializers for static and global variables are now processed
  193. an element at a time, so that they don't need a lot of storage.
  194.  
  195. * The C syntax for specifying which structure field comes next in an
  196. initializer is now `.FIELDNAME='.  The corresponding syntax for
  197. array initializers is now `[INDEX]='.  For example,
  198.  
  199.   char whitespace[256]
  200.     = { [' '] = 1, ['\t'] = 1, ['\n'] = 1 };
  201.  
  202. This was changed to accord with the syntax proposed by the Numerical
  203. C Extensions Group (NCEG).
  204.  
  205. * Complex numbers are now supported in C.  Use the keyword __complex__
  206. to declare complex data types.  See the manual for details.
  207.  
  208. * GCC now supports `long double' meaningfully on the Sparc (128-bit
  209. floating point) and on the 386 (96-bit floating point).  The Sparc
  210. support is enabled on on Solaris 2.x because earlier system versions
  211. (SunOS 4) have bugs in the emulation.
  212.  
  213. * All targets now have assertions for cpu, machine and system.  So you
  214. can now use assertions to distinguish among all supported targets.
  215.  
  216. * Nested functions in C may now be inline.  Just declare them inline
  217. in the usual way.
  218.  
  219. * Packed structure members are now supported fully; it should be possible 
  220. to access them on any supported target, no matter how little alignment
  221. they have.
  222.  
  223. * To declare that a function does not return, you must now write
  224. something like this (works only in 2.5):
  225.  
  226.     void fatal () __attribute__ ((noreturn));
  227.  
  228. or like this (works in older versions too):
  229.  
  230.     typedef void voidfn ();
  231.  
  232.     volatile voidfn fatal;
  233.  
  234. It used to be possible to do so by writing this:
  235.  
  236.     volatile void fatal ();
  237.  
  238. but it turns out that ANSI C requires that to mean something
  239. else (which is useless).
  240.  
  241. Likewise, to declare that a function is side-effect-free
  242. so that calls may be deleted or combined, write
  243. something like this (works only in 2.5):
  244.  
  245.     int computation () __attribute__ ((const));
  246.  
  247. or like this (works in older versions too):
  248.  
  249.     typedef int intfn ();
  250.  
  251.     const intfn computation;
  252.  
  253. * The new option -iwithprefixbefore specifies a directory to add to 
  254. the search path for include files in the same position where -I would
  255. put it, but uses the specified prefix just like -iwithprefix.
  256.  
  257. * Basic block profiling has been enhanced to record the function the
  258. basic block comes from, and if the module was compiled for debugging,
  259. the line number and filename.  A default version of the basic block
  260. support module has been added to libgcc2 that appends the basic block
  261. information to a text file 'bb.out'.  Machine descriptions can now
  262. override the basic block support module in the target macro file.
  263.  
  264. New features in g++:
  265.  
  266. * The new flag `-fansi-overloading' for C++.  Use a newly implemented
  267. scheme of argument matching for C++.  It makes g++ more accurately
  268. obey the rules set down in Chapter 13 of the Annotated C++ Reference
  269. Manual (the ARM).  This option will be turned on by default in a
  270. future release.
  271.  
  272. * The -finline-debug flag is now gone (it was never really used by the
  273.   compiler).
  274.  
  275. * Recognizing the syntax for pointers to members, e.g., "foo::*bar", has been
  276.   dramatically improved.  You should not get any syntax errors or incorrect
  277.   runtime results while using pointers to members correctly; if you do, it's
  278.   a definite bug.
  279.  
  280. * Forward declaration of an enum is now flagged as an error.
  281.  
  282. * Class-local typedefs are now working properly.
  283.  
  284. * Nested class support has been significantly improved.  The compiler
  285.   will now (in theory) support up to 240 nested classes before hitting
  286.   other system limits (like memory size).
  287.  
  288. * There is a new C version of the `g++' driver, to replace the old
  289.   shell script.  This should significantly improve the performance of
  290.   executing g++ on a system where a user's PATH environment variable
  291.   references many NFS-mounted filesystems.  This driver also works
  292.   under MS-DOS and OS/2.
  293.  
  294. * The ANSI committee working on the C++ standard has adopted a new
  295.   keyword `mutable'.  This will allow you to make a specific member be
  296.   modifiable in an otherwise const class.
  297.  
  298. Noteworthy GCC changes in version 2.4.4:
  299.  
  300.   A crash building g++ on various hosts (including m68k) has been
  301.   fixed.  Also the g++ compiler no longer reports incorrect
  302.   ambiguities in some situations where they do not exist, and
  303.   const template member functions are now being found properly.
  304.  
  305. Noteworthy GCC changes in version 2.4:
  306.  
  307. * On each target, the default is now to return short structures
  308. compatibly with the "usual" compiler on that target.
  309.  
  310. For most targets, this means the default is to return all structures
  311. in memory, like long structures, in whatever way is used on that
  312. target.  Use -freg-struct-return to enable returning short structures
  313. (and unions) in registers.
  314.  
  315. This change means that newly compiled binaries are incompatible with
  316. binaries compiled with previous versions of GCC.
  317.  
  318. On some targets, GCC is itself the usual compiler.  On these targets,
  319. the default way to return short structures is still in registers.
  320. Use -fpcc-struct-return to tell GCC to return them in memory.
  321.  
  322. * There is now a floating point emulator which can imitate the way all
  323. supported target machines do floating point arithmetic.
  324.  
  325. This makes it possible to have cross compilation to and from the VAX,
  326. and between machines of different endianness.  However, this works
  327. only when the target machine description is updated to use the new
  328. facilities, and not all have been updated.
  329.  
  330. This also makes possible support for longer floating point types.
  331. GCC 2.4 supports extended format on the 68K if you use `long double',
  332. for targets that have a 68881.  (When we have run time library
  333. routines for extended floating point, then `long double' will use
  334. extended format on all 68K targets.)
  335.  
  336. We expect to support extended floating point on the i386 and Sparc in
  337. future versions.
  338.  
  339. * Building GCC now automatically fixes the system's header files.
  340. This should require no attention.
  341.  
  342. * GCC now installs an unsigned data type as size_t when it fixes the
  343. header files (on all but a handful of old target machines).
  344. Therefore, the bug that size_t failed to be unsigned is fixed.
  345.  
  346. * Building and installation are now completely separate.
  347. All new files are constructed during the build process; 
  348. installation just copies them.
  349.  
  350. * New targets supported: Clipper, Hitachi SH, Hitachi 8300, and Sparc
  351. Lite.
  352.  
  353. * A totally new and much better Objective C run time system is included.
  354.  
  355. * Objective C supports many new features.  Alas, I can't describe them
  356. since I don't use that language; however, they are the same ones 
  357. supported in recent versions of the NeXT operating system.
  358.  
  359. * The builtin functions __builtin_apply_args, __builtin_apply and
  360. __builtin_return let you record the arguments and returned
  361. value of a function without knowing their number or type.
  362.  
  363. * The builtin string variables __FUNCTION__ and __PRETTY_FUNCTION__
  364. give the name of the function in the source, and a pretty-printed
  365. version of the name.  The two are the same in C, but differ in C++.
  366.  
  367. * Casts to union types do not yield lvalues.
  368.  
  369. * ## before an empty rest argument discards the preceding sequence
  370. of non-whitespace characters from the macro definition.
  371. (This feature is subject to change.)
  372.  
  373.  
  374. New features specific to C++:
  375.  
  376. * The manual contains a new section ``Common Misunderstandings with
  377. GNU C++'' that C++ users should read.
  378.  
  379. * #pragma interface and #pragma implementation let you use the same
  380. C++ source file for both interface and implementation.
  381. However, this mechanism is still in transition.
  382.  
  383. * Named returned values let you avoid an extra constructor call
  384. when a function result has a class type.
  385.  
  386. * The C++ operators <? and >? yield min and max, respectively.
  387.  
  388. * C++ gotos can exit a block safely even if the block has
  389. aggregates that require destructors.
  390.  
  391. * gcc defines the macro __GNUG__ when compiling C++ programs.
  392.  
  393. * GNU C++ now correctly distinguishes between the prefix and postfix
  394. forms of overloaded operator ++ and --.  To avoid breaking old
  395. code, if a class defines only the prefix form, the compiler
  396. accepts either ++obj or obj++, unless -pedantic is used.
  397.  
  398. * If you are using version 2.3 of libg++, you need to rebuild it with
  399. `make CC=gcc' to avoid mismatches in the definition of `size_t'.
  400.  
  401. Newly documented compiler options:
  402.  
  403. -fnostartfiles
  404.     Omit the standard system startup files when linking.
  405.  
  406. -fvolatile-global
  407.     Consider memory references to extern and global data items to
  408.     be volatile.
  409.  
  410. -idirafter DIR
  411.     Add DIR to the second include path.
  412.  
  413. -iprefix PREFIX
  414.     Specify PREFIX for later -iwithprefix options.
  415.  
  416. -iwithprefix DIR
  417.     Add PREFIX/DIR to the second include path.
  418.  
  419. -mv8
  420.     Emit Sparc v8 code (with integer multiply and divide).
  421. -msparclite
  422.     Emit Sparclite code (roughly v7.5).
  423.  
  424. -print-libgcc-file-name
  425.     Search for the libgcc.a file, print its absolute file name, and exit.
  426.  
  427. -Woverloaded-virtual
  428.     Warn when a derived class function declaration may be an error
  429.     in defining a C++ virtual function. 
  430.  
  431. -Wtemplate-debugging
  432.     When using templates in a C++ program, warn if debugging is
  433.     not yet fully available.
  434.  
  435. +eN
  436.     Control how C++ virtual function definitions are used
  437.     (like cfront 1.x).
  438.  
  439.